﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo9
{
    // 商品的基类
    public class Product
    {
        public string Name { get; set; }  // 直接可读写的属性
        public decimal Price { get; set; }

        public virtual decimal CalDiscount()
        {
            return Price;
        }
    }
}
